package cn.amoqi.springboot.rabbit.controller;

import cn.amoqi.springboot.rabbit.rabbit.fanout.FanoutSender;
import cn.amoqi.springboot.rabbit.rabbit.topic.TopicSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FanoutController {

    @Autowired
    private FanoutSender fanoutSender;

    /**
     * 获取消息跟交换机设定的routerKey有关
     */
    @RequestMapping("/fanout1")
    public void test1() {
        fanoutSender.sender();
    }
}
